import request from '@/utils/request'

// 查询OSS对象存储列表
export function listOss(query) {
  let Base64 = require('js-base64').Base64
  return request({
    url: '/system/oss/list',
    method: 'get',
    params: query
  })
}
// 新增查重任务
export function addCheck(data) {
  window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(base64Encode('https://wolongyufengchu.oss-cn-beijing.aliyuncs.com/33a28ddf-c3d2-41c8-82a4-e90706b4025f.jpg')));
  return request({
    url: '/system/check',
    method: 'post',
    data: data
  })
}
// 查询OSS对象基于id串
export function listByIds(ossId) {
  return request({
    url: '/system/oss/listByIds/' + ossId,
    method: 'get'
  })
}

// 删除OSS对象存储
export function delOss(ossId) {
  return request({
    url: '/system/oss/' + ossId,
    method: 'delete'
  })
}

